<template>
  <el-row>
    <el-col :span="8">
      <div class="grid-content bg-purple">&nbsp;</div>
    </el-col>
    <el-col :span="8">
      <div class="grid-content bg-purple-light">
        <div style="margin-top:50px"></div>
        <el-form label-position="left" label-width="80px" :model="user">
          <el-form-item label="账号">
            <el-input v-model="user.number" :disabled="true"></el-input>
          </el-form-item>
          <el-form-item label="密码" >
            <el-input v-model="user.passwd" :disabled="true"></el-input>
          </el-form-item>
          <el-form-item label="姓名">
            <el-input v-model="user.name" :disabled="true"></el-input>
          </el-form-item>
          <el-form-item>
            <el-button style="margin-top: 10px" type="primary" @click="gotoUpdate">修改个人信息</el-button>
          </el-form-item>
        </el-form>
      </div>
    </el-col>
    <el-col :span="8">
      <div class="grid-content bg-purple"></div>
    </el-col>
  </el-row>
</template>

<script>
import {mapState} from 'vuex'
export default {
  name: "Mydata",
  data() {
    return {
      form: {
        code: '',
      },
      formLabelWidth: '80px',
      dialog: false,
      loading: false,
      time:0,
     baseUrl:"http://fileapi.ems.copyctrl.top/data/upload/images/"
    }
  },
  computed:{
    ...mapState('userOptions',['user','dept'])
  },
  methods:{
    gotoUpdate(){
      this.$router.push('/updateData')
    }
  }
}
</script>

<style scoped>
</style>
